package com.uniapp.mealserver.controller.utils;

import lombok.Data;

@Data
public class R {
    private String code;
    private Object data;
    private String msg;

    public R() {}

    public R(Object data) {
        this.code = "200";
        this.data = data;
        this.msg = "success";
    }

    public R(Object data,String msg) {
        this.code = "200";
        this.data = data;
        this.msg = msg;
    }

    public R(String msg) {
        this.code = "500";
        this.msg = msg;
    }
}
